﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ESPL.CodeGenerator.Common.ProjectBuilders;
using ESPL.CodeGenerator.Common;
using ESPL.CodeGenerator.Common.Structs;
using ESPL.CodeGenerator.Domain.TemplateGenerators.SolutionGenerators;
using ESPL.CodeGenerator.Domain.Utilities;
using ESPL.CodeGenerator.Domain.TemplateGenerators.ProjectGenerators;
using ESPL.CodeGenerator.Common.Enums;

namespace ESPL.CodeGenerator.Domain.ProjectBuilders
{
    internal class DataTransferProjectBuilder : ProjectBuilderBase, IDataProjectBuilder
    {
        #region Constructor

        public DataTransferProjectBuilder(ApplicationConfiguration config, ClassLibraryConfiguration projectConfig)
            : base(config, projectConfig)
        {
            WriteFile = true;
            CreateDir = true;
        }

        #endregion

        #region Methods

        protected override BuilderResponse GetResponse()
        {
            return new BuilderResponse { Output = string.Format("{0} Project Created at: {1}", _generator.ToString(), GetFilePath()) };
        }

        #endregion
    }
}
